package kr.hkit.myframework.uicomp;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.GridLayout;
import java.awt.FlowLayout;

public class PanelInputUi extends JPanel { //점수용
	private JTextField tf;
	private JLabel lbl;
	

	public PanelInputUi(String lblText) {
		initialize();
		lbl.setText(lblText);
	}
	
	private void initialize() {
		
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		lbl = new JLabel("New label");
		add(lbl);
		
		tf = new JTextField();
		add(tf);
		tf.setColumns(10);		
	}

	
	public JTextField getTf() {
		return tf;
	}

	public void setTextField(String text) {
		this.tf.setText(text);
	}

}
